package com.lxl.service;

import com.lxl.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 北上寻海
 */
public interface IService {
    default int addUser(User user) throws SQLException {
        return 0;
    }

    default List findById(Object[] params) throws SQLException {
        return null;
    }

    default List findAll() throws SQLException {
        return null;
    }

    default int deleteUserById(int id) throws SQLException {
        return 0;
    }

    default int updateUserById(Object[] params) throws SQLException {
        return 0;
    }
    default List verify(String name,String password) throws SQLException {
        return null;
    }
}
